{%- for data in ndi_l2_data %}
{%- if data.option_vray %}
interface {{ data.phy }}
 description {{ data.description }}
{%- if data.option_eth_trunk %}
 eth-trunk {{ data.eth_trunk }}
{% else -%}
{%- if data.int_type=='trunk' %}
 port link-type {{ data.int_type }}
 undo port trunk allow-pass vlan 1
 port trunk allow-pass vlan {{ data.trunk_vlan }}
{% endif -%}
{%- if data.int_type=='access' %}
 port link-type {{ data.int_type }}
 port default vlan {{ data.trunk_vlan }}
{% endif -%}
{%- if data.int_type=='hybrid' %}
 port link-type {{ data.int_type }}
 port hybrid pvid vlan {{ data.pvid }}
 port hybrid tagged vlan {{ data.trunk_vlan }}
 port hybrid untagged vlan {{ data.untag_vlan }}
{% endif -%}
{% endif -%}
#
{%- endif -%}
{% endfor -%}

